<?php
include_once "Subject/ConcreteSubject.php";
include_once "Observers/ConcreteObserver.php";

use Observer\Subject\ConcreteSubject;
use Observer\Observers\ConcreteObserver;
/** 实例化具体通知对象 */
$notify = new ConcreteSubject();
/** 添加具体观察者对象 */
$notify->attach(new ConcreteObserver());
/** 执行通知 */
$notify->notify();